<template>
  <div class="coms" :id="name"></div>
</template>
<script>
import echarts from "echarts";
import liqiuidfill from './liqiuidfill.min.js'
export default {
    name:'echarts',
    props:{
   name:String,
   data:Object
    },
  data() {
    return {
     


     
    }
  },
  mounted() {
    this.drawLine7()
  },
  methods: {
      drawLine7() {
        
        console.log("xxxx")
      // 基于准备好的dom，初始化echarts实例
      let myChart = echarts.init(document.getElementById(this.name));
      //水滴图下载npm install echarts-liquidfill --save
     
      // 绘制图表
      myChart.setOption(this.data);
    },

  },
}
</script>
<style lang="scss" >
.coms {
  width: 100%;
  height: 100%;
}
</style>